package com.ourteam.system.dao;

import net.dao.IDataAccessInterface;


/**
 * Template Name : DAO接口模板
 * Template Version : 1
 * Template Last Modfiy Date : Thu Sep 21 11:14:14 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:19
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public interface IBaseSysMessageDAO extends IDataAccessInterface<SysMessage, SysMessageDAOQueryBean> {
    /**
        *  Mapped Entity Name
        */
    static final String EntityName = "SYS_MESSAGE";

    /**
     * Mapped Field ID
    */
    static final String Id = "SYS_MESSAGE.ID";

    /**
     * Mapped Field PARENT_ID
    */
    static final String ParentId = "SYS_MESSAGE.PARENT_ID";

    /**
     * Mapped Field SENDER_ID
    */
    static final String SenderId = "SYS_MESSAGE.SENDER_ID";

    /**
     * Mapped Field TITLE
    */
    static final String Title = "SYS_MESSAGE.TITLE";

    /**
     * Mapped Field CONTENT
    */
    static final String Content = "SYS_MESSAGE.CONTENT";

    /**
     * Mapped Field PRIORITY
    */
    static final String Priority = "SYS_MESSAGE.PRIORITY";

    /**
     * Mapped Field SEND_TIME
    */
    static final String SendTime = "SYS_MESSAGE.SEND_TIME";

    /**
     * Mapped Field STATUS
    */
    static final String Status = "SYS_MESSAGE.STATUS";

    /**
     * Mapped Field REMARKS
    */
    static final String Remarks = "SYS_MESSAGE.REMARKS";

    /**
     * Mapped Attribute senderName
    */
    static final String SenderName = org.apache.commons.lang.StringUtils.replace(com.ourteam.system.dao.ISysUserDAO.UserName,
            com.ourteam.system.dao.ISysUserDAO.EntityName + ".", "SYS_USER.");

    /**
     * Mapped Attribute senderAccount
    */
    static final String SenderAccount = org.apache.commons.lang.StringUtils.replace(com.ourteam.system.dao.ISysUserDAO.UserAccount,
            com.ourteam.system.dao.ISysUserDAO.EntityName + ".", "SYS_USER.");

    /**
     * Delete Data
     * @param final long id
     * @throws Exception
     */
    void delete(final long id) throws Exception;

    /**
         * Find Data By Primary Key
         * @param  final long id
         * @throws Exception
         */
    SysMessage findById(final long id) throws Exception;

    static public interface DataProperty {
        /**
         * Attribute id
         */
        static final String Id = "id";

        /**
         * Attribute parentId
         */
        static final String ParentId = "parentId";

        /**
         * Attribute senderId
         */
        static final String SenderId = "senderId";

        /**
         * Attribute title
         */
        static final String Title = "title";

        /**
         * Attribute content
         */
        static final String Content = "content";

        /**
         * Attribute priority
         */
        static final String Priority = "priority";

        /**
         * Attribute sendTime
         */
        static final String SendTime = "sendTime";

        /**
         * Attribute status
         */
        static final String Status = "status";

        /**
         * Attribute remarks
         */
        static final String Remarks = "remarks";

        /**
         * Attribute senderName
         */
        static final String SenderName = "senderName";

        /**
         * Attribute senderAccount
         */
        static final String SenderAccount = "senderAccount";
    }

    static public interface _DataObjectProperty extends DataProperty {
    }
}
